package guoanmaker.operator.business.repository;

import guoanmaker.operator.business.model.OperatorActivity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 *  
 *
 * @author huZhaoyu 
 * @ClassName: OperatorActivityRepository
 * @Description: 活动Repository
 * @date 2017/6/29
 */
public interface OperatorActivityRepository extends JpaRepository<OperatorActivity, String>, JpaSpecificationExecutor<OperatorActivity> {
    //	@Query("select u from OperatorUser u left join fetch u.roles r where u.username=:username")
//    public Optional<OperatorUser> findByUsername(@Param("username") String username);
    Integer countAllByIdIsNotNull();
}